package com.supermarket.manage.provider.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supermarket.manage.common.dto.prod.response.CategoryDto;
import com.supermarket.manage.common.pojo.ProductCategory;
import org.apache.ibatis.annotations.Mapper;

import java.util.Set;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-03-08 19:21
 **/
@Mapper
public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {
    /**
     * 获取所有商品分类
     *
     * @param buyerId
     * @return
     */
    Set<CategoryDto> getAllCategoryByBuyerId(String buyerId);
}
